import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/login',
            component: () => import('@/views/login')
        },
        {
            path: '/home',
            component: () => import('@/layOut/index.vue'),
            children: [
                {
                    path: '/clue',
                    component: () => import('@/views/clue')
                },
                {
                    path: '/contract',
                    component: () => import('@/views/contract')
                },
                {
                    path: '/active',
                    component: () => import('@/views/active')
                },
                {
                    path: '/course',
                    component: () => import('@/views/course')
                },
                {
                    path: '/statistics',
                    component: () => import('@/views/statistics')
                },
                {
                    path: '/transfer',
                    component: () => import('@/views/transfer')
                }
            ]
        },

    ]
})